package com.impzx.restaurant.rest.dataobject;

import java.io.File;

import com.alibaba.fastjson.JSON;


public class DemoObject {
	private int id;
	private String name;
	
	public DemoObject() {
		
	}
	
	public DemoObject(String param) {
		String[] array = param.split(",");
		id = Integer.parseInt(array[0]);
		name = array[1];
	}
	
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return JSON.toJSONString(this);
	}

	
}
